/*
 *
 * @author yandeqing
 * @created 2016.6.3
 * @email 18612205027@163.com
 * @version $version
 *
 */

/*
 * @author yandeq
 * @version 1.0
 * @created 2016.6.3.
 *
 */

package com.spd.singlechipupgrade;

import android.annotation.SuppressLint;
import android.app.Application;

import me.f1reking.serialportlib.SerialPortHelper;

public class App extends Application {

    @SuppressLint("StaticFieldLeak")
    private static App instance = null;

    public static App getInstance() {
        return instance;
    }


    private SerialPortHelper serialPortHelper;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;

    }

    public SerialPortHelper getSerialPortHelper() {
        return serialPortHelper;
    }

    public void setSerialPortHelper(SerialPortHelper serialPortHelper) {
        this.serialPortHelper = serialPortHelper;
    }
}
